package com.wei.czz.common.dto.common;

import com.wei.czz.common.tool.BaseEntity;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

import java.util.List;

/**
 * Created by IntelliJ IDEA.
 *
 * @author wyw
 * date: 2024-06-26 18:21:52
 * className: UploadDto 文件导入结果类
 * version: 1.0
 * description:
 */
@Getter
@Setter
@Accessors(chain = true)
public class UploadDto<T> extends BaseEntity {

    /**
     * 导入模式[0-异步 1-同步]
     */
    private Integer mode;

    /**
     * 导入总数
     */
    private Integer totalCount;

    /**
     * 导入成功数
     */
    private Integer successCount;

    /**
     * 导入失败数
     */
    private Integer failedCount;

    /**
     * 导入失败数据文件下载地址
     */
    private String downloadFailFileUrl;

    /**
     * 导入字段名称列表
     */
    private List<NameValue<String>> fieldList;

    /**
     * 导入失败数据列表
     */
    private List<T> failList;

}
